Resource URL: /platform/<<version=1>>/auth/roles/<ROLE>

    Overview: This resource applies the standard collection pattern to
              individual roles.

     Methods: GET, PUT, DELETE

********************************************************************************

Method GET: Retrieve the role information.

       URL: GET /platform/<<version=1>>/auth/roles/<ROLE>

Query arguments:
resolve_names=<boolean> Resolve names of personas.

GET response body schema:
{
  "type": [
    {
      "additionalProperties": false, 
      "type": "object", 
      "description": "A list of errors that may be returned.", 
      "properties": {
        "errors": {
          "items": {
            "additionalProperties": false, 
            "type": "object", 
            "description": "An object describing a single error.", 
            "properties": {
              "field": {
                "type": "string", 
                "description": "The field with the error if applicable."
              }, 
              "message": {
                "type": "string", 
                "description": "The error message."
              }, 
              "code": {
                "type": "string", 
                "description": "The error code."
              }
            }
          }, 
          "type": "array"
        }
      }
    }, 
    {
      "additionalProperties": false, 
      "type": "object", 
      "properties": {
        "roles": {
          "minItems": 0, 
          "items": {
            "type": "object", 
            "description": "Specifies the role maps privileges to users and groups.", 
            "properties": {
              "name": {
                "minLength": 0, 
                "required": true, 
                "type": "string", 
                "description": "Specifies the name of the role.", 
                "maxLength": 255
              }, 
              "privileges": {
                "description": "Specifies the privileges granted by this role.", 
                "minItems": 0, 
                "items": {
                  "type": "object", 
                  "description": "Specifies the system-defined privilege that may be granted to users.", 
                  "properties": {
                    "read_only": {
                      "type": "boolean", 
                      "description": "True, if the privilege is read-only."
                    }, 
                    "id": {
                      "minLength": 0, 
                      "required": true, 
                      "type": "string", 
                      "description": "Specifies the ID of the privilege.", 
                      "maxLength": 255
                    }, 
                    "name": {
                      "minLength": 0, 
                      "type": "string", 
                      "description": "Specifies the name of the privilege.", 
                      "maxLength": 255
                    }
                  }
                }, 
                "required": true, 
                "maxItems": 4294967295, 
                "type": "array"
              }, 
              "description": {
                "required": true, 
                "type": [
                  {
                    "minLength": 0, 
                    "type": "string", 
                    "description": "Specifies the description of the role.", 
                    "maxLength": 255
                  }, 
                  {
                    "type": "null"
                  }
                ]
              }, 
              "members": {
                "description": "Specifies the users or groups that have this role.", 
                "minItems": 0, 
                "items": {
                  "type": "object", 
                  "description": "Specifies properties for a persona, which consists of either a 'type' and a 'name' or an 'ID'.", 
                  "properties": {
                    "type": {
                      "enum": [
                        "user", 
                        "group", 
                        "wellknown"
                      ], 
                      "type": "string", 
                      "description": "Specifies the type of persona, which must be combined with a name."
                    }, 
                    "id": {
                      "minLength": 0, 
                      "type": "string", 
                      "description": "Specifies the serialized form of a persona, which can be 'UID:0', 'USER:name', 'GID:0', 'GROUP:wheel', or 'SID:S-1-1'.", 
                      "maxLength": 261
                    }, 
                    "name": {
                      "minLength": 0, 
                      "type": "string", 
                      "description": "Specifies the persona name, which must be combined with a type.", 
                      "maxLength": 255
                    }
                  }
                }, 
                "required": true, 
                "maxItems": 4294967295, 
                "type": "array"
              }, 
              "id": {
                "minLength": 0, 
                "required": true, 
                "type": "string", 
                "description": "Specifies the ID of the role.", 
                "maxLength": 255
              }
            }
          }, 
          "type": "array", 
          "maxItems": 4294967295
        }
      }
    }
  ]
}

********************************************************************************

Method PUT: Modify the role.

       URL: PUT /platform/<<version=1>>/auth/roles/<ROLE>

There are no query arguments for this method.

PUT request body schema:
{
  "type": "object", 
  "description": "Specifies the role maps privileges to users and groups.", 
  "properties": {
    "privileges": {
      "minItems": 0, 
      "items": {
        "type": "object", 
        "description": "Specifies the system-defined privilege that may be granted to users.", 
        "properties": {
          "read_only": {
            "type": "boolean", 
            "description": "True, if the privilege is read-only."
          }, 
          "id": {
            "minLength": 0, 
            "required": true, 
            "type": "string", 
            "description": "Specifies the ID of the privilege.", 
            "maxLength": 255
          }, 
          "name": {
            "minLength": 0, 
            "type": "string", 
            "description": "Specifies the name of the privilege.", 
            "maxLength": 255
          }
        }
      }, 
      "type": "array", 
      "description": "Specifies the privileges granted by this role.", 
      "maxItems": 4294967295
    }, 
    "description": {
      "minLength": 0, 
      "type": "string", 
      "description": "Specifies the description of the role.", 
      "maxLength": 255
    }, 
    "members": {
      "minItems": 0, 
      "items": {
        "type": "object", 
        "description": "Specifies properties for a persona, which consists of either a 'type' and a 'name' or an 'ID'.", 
        "properties": {
          "type": {
            "enum": [
              "user", 
              "group", 
              "wellknown"
            ], 
            "type": "string", 
            "description": "Specifies the type of persona, which must be combined with a name."
          }, 
          "id": {
            "minLength": 0, 
            "type": "string", 
            "description": "Specifies the serialized form of a persona, which can be 'UID:0', 'USER:name', 'GID:0', 'GROUP:wheel', or 'SID:S-1-1'.", 
            "maxLength": 261
          }, 
          "name": {
            "minLength": 0, 
            "type": "string", 
            "description": "Specifies the persona name, which must be combined with a type.", 
            "maxLength": 255
          }
        }
      }, 
      "type": "array", 
      "description": "Specifies the users or groups that have this role.", 
      "maxItems": 4294967295
    }, 
    "name": {
      "minLength": 0, 
      "type": "string", 
      "description": "Specifies the name of the role.", 
      "maxLength": 255
    }
  }
}

There is no JSON response body for this method.

********************************************************************************

Method DELETE: Delete the role.

          URL: DELETE /platform/<<version=1>>/auth/roles/<ROLE>

There are no query arguments for this method.

There is no JSON response body for this method.
